/*
 * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@use 'sass:map';
@use '@angular/material' as mat;
@use '@gravitee/ui-particles-angular' as gio;

$textColor: map.get(gio.$mat-dove-palette, default);
$borderColor: mat.get-color-from-palette(gio.$mat-space-palette, 'lighter80');

:host {
  width: 100%;
}

.api-navigation-title {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid $borderColor;
  padding: 0 8px 20px;

  &__states {
    display: flex;
    align-items: center;
    border-radius: 8px;
    flex-wrap: wrap;

    .gio-badge-primary {
      margin-bottom: 4px;
    }

    &__icon {
      margin-right: 4px;
      width: 12px;
      height: 12px;
      flex-shrink: 0;
    }
  }

  &__name {
    padding-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 10px;
  }
}
